<?php

namespace Shen\Rocketmq5\Annotation;

use Hyperf\Di\Annotation\AbstractAnnotation;
use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
class RocketMq extends AbstractAnnotation
{

    public function __construct(
        public string $topic = '',
        public string $group = '',
        public int    $num = 1,
        public string $modeType = "all",//筛选类型 all=所有 tag=标签 sql=sql筛选
        public string $mode = "",//筛选内容
        public int    $invisibleDurations = 30,
        public bool   $enable = true
    )
    {}
}